import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`trademark-catalog` + url, ...arg)
/**
 * 短信
 *
 * @author yubaoshan
 * @date 2022-09-22 22:33:20
 */
export default {
	// 获取短信分页
	page(data) {
		return request('/page', data, 'post')
	},
	// 提交表单 edit为true时为编辑，默认为新增
	submitForm(data, edit = false) {
		return request("",data,edit ? 'put' : 'post', )
	},
	// 发送短信——腾讯云
	smsSendTencent(data) {
		return request('sendTencent', data)
	},
	// 删除短信
	smsDelete(data) {
		return request('delete', data)
	},
	// 获取短信详情
	smsDetail(data) {
		return request('detail', data, 'get')
	}
}
